package a.f.l.a;

import java.util.List;

class zb
  extends sb
{
  private int f;
  private boolean g;
  
  protected void b(rb paramrb)
  {
    super.b(paramrb);
    this.f = paramrb.e().f().l();
    if (!sb.e) {}
    this.g = (this.f > 0);
  }
  
  double[] a(h paramh, mb parammb, jb[] paramArrayOfjb, m[] paramArrayOfm, double[] paramArrayOfDouble)
  {
    if (!sb.e) {
      if (!this.g)
      {
        b("punish bends in node to edge distance", 0.0D, false);
        return new double[paramArrayOfjb.length];
      }
    }
    return super.a(paramh, parammb, paramArrayOfjb, paramArrayOfm, paramArrayOfDouble);
  }
  
  protected double a(h paramh, mb parammb, jb paramjb, m paramm, double paramDouble)
  {
    mb localmb = paramh.a();
    double d = 0.0D;
    if (!sb.e)
    {
      if (a(localmb)) {
        d = this.f * a(paramm);
      }
      a("punish bends in node to edge distance", d, false);
    }
    return d;
  }
  
  private static boolean a(mb parammb)
  {
    if (!sb.e) {}
    return !b(parammb).isEmpty();
  }
  
  private static int a(m paramm)
  {
    boolean bool = sb.e;
    if (!bool) {
      if (paramm == null) {
        return 0;
      }
    }
    if (!bool) {
      switch (paramm.e())
      {
      case 1: 
      case 3: 
        return 2;
      case 2: 
        return 1;
      }
    }
    return 0;
  }
  
  private static List b(mb parammb)
  {
    return (List)parammb.a(nb.b);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.l.a.zb
 * JD-Core Version:    0.7.0.1
 */